// 定义一个key
const KEY = 'my-token-vant-mobile'
// 获取token的函数
export const getToken = () => {
  return localStorage.getItem(KEY)
}
// 设置token的函数
export const setToken = (token) => {
  return localStorage.setItem(KEY, token)
}
// 删除token的函数
export const delToken = () => {
  return localStorage.removeItem(KEY)
}
// 给城市列表做的
const KEY1 = 'hhh'
const KEY2 = 'lll'

export const sToken = (token) => {
  return localStorage.setItem(KEY1, token)
}
export const ssToken = (token) => {
  return localStorage.setItem(KEY2, token)
}

export const gToken = () => {
  return localStorage.getItem(KEY1)
}
export const ggToken = () => {
  return localStorage.getItem(KEY2)
}
